﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Spanner
{
    public partial class UI
    {
        /// <summary>
        /// A web page defining the starting point for an application.
        /// </summary>
        /// <param name="name">The base name of the file for this web page.</param>
        /// <param name="html">The HTML laying out the page.</param>
        /// <param name="initAct">An action to be carried out when the page is fully loaded.</param>
        /// <param name="dependencies">The complete list of model instances on which this page depends.</param>
        /// <returns></returns>
        public static WebPage WebPage(string name, Html html, Act initAct, params Model[] dependencies)
        {
            return new WebPage(name, html, initAct, dependencies);
        }
    }
}
